home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / pyatspi / __init__.pyc (.txt) next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  2.2 KB  |  60 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. '''
  5. Wraps the Gnome Assistive Technology Service Provider Interface for use in
  6. Python. Imports the bonobo and ORBit modules. Initializes the ORBit ORB.
  7. Activates the bonobo Accessibility Registry. Loads the Accessibility typelib
  8. and imports the classes implementing the AT-SPI interfaces.
  9.  
  10. @var Registry: Reference to the AT-SPI registry daemon intialized on successful
  11.   import
  12. @type Registry: registry.Registry
  13.  
  14. @author: Peter Parente
  15. @organization: IBM Corporation
  16. @copyright: Copyright (c) 2005, 2007 IBM Corporation
  17. @license: LGPL
  18.  
  19. This library is free software; you can redistribute it and/or
  20. modify it under the terms of the GNU Library General Public
  21. License as published by the Free Software Foundation; either
  22. version 2 of the License, or (at your option) any later version.
  23.  
  24. This library is distributed in the hope that it will be useful,
  25. but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  27. Library General Public License for more details.
  28.  
  29. You should have received a copy of the GNU Library General Public
  30. License along with this library; if not, write to the
  31. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  32. Boston, MA 02111-1307, USA.
  33.  
  34. Portions of this code originally licensed and copyright (c) 2005, 2007
  35. IBM Corporation under the BSD license, available at
  36. U{http://www.opensource.org/licenses/bsd-license.php}
  37. '''
  38. __version__ = (1, 26, 0)
  39. REGISTRY_IID = 'OAFIID:Accessibility_Registry:1.0'
  40. TYPELIB_NAME = 'Accessibility'
  41. import ORBit
  42. import bonobo
  43. orb = ORBit.CORBA.ORB_init()
  44.  
  45. try:
  46.     reg = bonobo.activation.activate_from_id(REGISTRY_IID, 0, 0)
  47. except Exception:
  48.     reg = None
  49.  
  50. ORBit.load_typelib(TYPELIB_NAME)
  51. import registry
  52. Registry = registry.Registry(reg)
  53. registry.Registry = Registry
  54. del registry
  55. from accessible import setCacheLevel, getCacheLevel, clearCache, printCache
  56. from constants import *
  57. from utils import *
  58. del reg
  59. del orb
  60.